#include <stdio.h>
#include <string.h>

//请实现一个函数，将一个字符串中的每个空格替换成“%20”

void replaceSpace(char *str, int length) {
    for (int i = 0; i < length; i++) {
        if (str[i] == ' ') {
            memmove(&str[i + 3], &str[i + 1], length - i);
            memmove(&str[i], "%20", 3);
            length += 2;
            i += 2;
        }
    }
}

int main() {

    return 0;
}